package com.jd.ty.web.filter;

import com.jd.ty.dao.constant.QueryConstants;
import com.jd.ty.dao.constant.QueryConstants.CustomerCompany;
import com.jd.ty.util.CharacterEncodingUtil;
import com.jd.ty.util.Filter;

public class CustomerCompanyFilter extends Filter{
	private Item companyName     = new Item(CustomerCompany.CUST_COMPANY_NAME, null, QueryConstants.LIKE);
	private Item address  = new Item(CustomerCompany.ADDRESS, null, QueryConstants.LIKE);
	private Item phoneNumber           = new Item(CustomerCompany.PHONE_NUMBER, null, QueryConstants.LIKE);
	
	public String getCompanyName() {
		return (String) companyName.getValue();
	}
	public void setCompanyName(String value) {
		companyName.setValue(CharacterEncodingUtil.iso2utf8(value));
	}
	
	public String getAddress() {
		return (String) address.getValue();
	}
	public void setAddress(String value) {
		this.address.setValue(CharacterEncodingUtil.iso2utf8(value));
	}

	public String getPhoneNumber() {
		return (String) phoneNumber.getValue();
	}
	public void setPhoneNumber(String value) {
		phoneNumber.setValue(CharacterEncodingUtil.iso2utf8(value));
	}
	
	


}
